<?
session_start();
//session_destroy();
require_once ('Dataprovider/Dataconfig.php');
require ('Dataprovider/Dataconnection.php');

?>
<!doctype HTML public "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html>

	<head>

		<title>Admin Tools</title>

		<meta http-equiv="content-type" content="text/HTML; charset=UTF-8" />
                <link rel="stylesheet" href="Admin/admin.css" type="text/css" media="all"/>
                <link rel="stylesheet" href="css/style.css" type="text/css" media="all"/>
                <link rel="stylesheet" href="css/button.css" type="text/css" media="all"/>
                <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
                <script type="text/javascript" src="Admin/admin.js"></script>
                <script type="text/javascript" src="js/vadilation.js"></script>
                <script type="text/javascript" src="js/block/jquery.blockUI.js"></script>
<!--                <link rel="stylesheet" href="../lib.css/button.css" />-->
                <link rel="stylesheet" href="Admin/tab.css" />
                <link rel="stylesheet" href="Admin/input.css" />
                <link rel="stylesheet" href="css/menucontent.css" />

                <link rel="stylesheet" href="lib/jwysiwyg/jwysiwyg/jwysiwyg/jquery.wysiwyg.css" type="text/css" />
                <script type="text/javascript" src="lib/jwysiwyg/jwysiwyg/jwysiwyg/jquery.wysiwyg.js"></script>
                
                <script type="text/javascript" src="Admin/ajax-file-upload/js/ajaxupload.3.5.js" ></script>
                <link rel="stylesheet" type="text/css" href="Admin/ajax-file-upload/styles.css" />
                
                <script type="text/javascript" src="lib/tipTipv13/jquery.tipTip.js" ></script>
                <link rel="stylesheet" type="text/css" href="lib/tipTipv13/tipTip.css" />
                
<!--                <script type="text/javascript" src="ckeditor/ckeditor.js"></script>-->
                <script type="text/javascript" src="lib/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
                <script type="text/javascript" src="lib/ckfinder/ckfinder.js"></script>
	</head>

</html>

<body style="margin: 8px">
    <?
    
    $au=$_SESSION["USER"]["authority"];
    if(!isset($au) || $au!=";admin;"){
        include "Admin/login.php";
    }else{
    ?>
    <div id="uicontent" style="width: 100%;height: 100%;display: none">Please wait...</div>

    <div id="menu" class="hidden"><? // include( "Admin/01_menu.php" ); ?></div>

	<div id="body">
            <b>Manage</b>
            <div class="accmenu">
                <a href="javascript:" target="" >
                    <?= empty( $_SESSION["USER"] ) ? "Window" : $_SESSION["USER"]["name"] ?>
                </a>
                <div style="position: absolute;top:0;right: 0;padding-top: 32px">
                    <div class="mcs_container" style="">
                            <div class="mscontainer" style="top: 0px; ">
                                <div class="mscontent">
                                    <div class="JO_box_item" style="">
                                        <img src="" alt="">
                                        <a href="">My Account</a>
                                    </div>
                                    <div class="JO_box_item">
                                        <span>Option</span>
                                    </div>
                                    <div class="JO_box_item">
                                        <a href="">Manage</a>
                                    </div>
                                    <div class="JO_box_item">
                                        <img src="images/icon/16/power_off.png" alt=""/>
                                        <a href="Admin/logout.php">Logout</a>
                                    </div>
                                </div>
                            </div>
                        
                    </div>
                </div>
            </div>
            
                
            
                 
            
                
            <hr />
            <div id="id-iframe" style=";" >
                Please wait...
            </div>
            <div id="id-iframe2" style=";display: none;position: relative" >
                <div class="content">
                    Please wait...
                </div>
                <div class="close-button" onclick="hidebox2();" title="Back"><img src="images/icon/left.png"/></div>
                <div class="close-button left" onclick="hidebox2();" title="Back to list"><img src="images/back1.png"/></div>
            </div>


            <script>
                    $(document).ready(function(){
                        var editor, html = '';
                        showmsg("Loadding...",2000);
                        loadhtml("Controller/?AUnit=summary",null);
                        document.getElementById( 'id-iframe' ).style.height = ( window.innerHeight - 52 ) + "px";
                        document.getElementById( 'id-iframe2' ).style.height = ( window.innerHeight - 52 ) + "px";
                    });
                    

            </script>

        </div>

        

	
        <?
    }
        ?>
</body>

</html>
